package com.yzd.otherlearn.jvm;

/**
 * -Xss128k
 * @author 10069212
 *
 */
public class JavaVMStackSOF {
	private int stackLength = 1 ;
	public void stackLeak() {
		stackLength++;
		stackLeak();
	}
	public static void main(String[] args) {
		JavaVMStackSOF ooJavaVMStackSOF = new JavaVMStackSOF();
		try {
			ooJavaVMStackSOF.stackLeak();
		} catch (Throwable e) {
			System.out.println("Statck length:" + ooJavaVMStackSOF.stackLength);
			e.printStackTrace();
		}
	}
}
